/**
 *
 * © Bahadir Zeren 2011
 * bzeren@gmail.com
 * No warranties, express or implied, are made for this program.
 *
 */

package org.baatar.remoting.test.impl.service;

import org.baatar.remoting.service.AImplementor;
import org.baatar.remoting.test.intf.IMathService;

/**
 * Implementation class of the remote math service business logic.
 * 
 * @author Ba
 */
public class MathServiceImpl extends AImplementor implements IMathService {

    public Double add(Double a, Double b) throws Exception {
        return a + b;
    }

    public Double substract(Double a, Double b) throws Exception {
        return a - b;
    }

    public Double multiply(Double a, Double b) throws Exception {
        return a * b;
    }

    public Double divide(Double a, Double b) throws Exception {
        return a / b;
    }
}
